import base from './base.js';
export default {
	onShareAppMessage(res) { //发送给朋友
		if (res.from === 'button') {// 来自页面内分享按钮
		  console.log(res.target)
		}
		let share=base.session.get('weixin_share');
		
		if(share)
		{
			return {
				paht:'/',
				title:share.title?share.title:'福州风拓建材',
				imageUrl:share.img_url?share.img_url:''
			}
		}else{
			return {
			  path: '/'
			}
		}
		
	},
	onShareTimeline(res) {//分享到朋友圈
		return {}
	}
}